<?php

namespace addons\Attend\common\enums;
use common\enums\BaseEnum;

/**
 * 枚举
 *
 * Class GenderEnum
 * @package common\enums
 * @author YiiFrame <21931118@qq.com>
 */
class ClassesTypeEnum extends BaseEnum
{
    const day = 0;
    const night = 1;

    /**
     * @return array
     */
    public static function getMap(): array
    {
        return [
            self::day => '白班',
            self::night => '夜班',

        ];
    }

    public static function getValue($key): string
    {
        return static::getMap()[$key] ?? '';
    }
}